﻿
using System;
using System.Collections.Generic;

namespace LxCFD
{
    public class MonitorBase : HeadBase, IReset
    {
        public double CurrentResult;
        public bool IsCurrentExist;
        public bool IsKeepData { get; set; }
        public bool IsStopRule { get; set; } = false;
        public bool IsRunAfterSteadyStep { get; set; } = true;

        public List<double> y = new List<double>(1000);
        public List<double> x = new List<double>(1000);

        public virtual void RunMonitor()
        {

        }

        public virtual void Reset(ResetTypes clearType)
        {
            switch (clearType)
            {
                case ResetTypes.ClearToLoadSimulation:
                case ResetTypes.ClearToLoadMesh:
                case ResetTypes.ClearFields:
                    //清空x y的值
                    break;
                case ResetTypes.UpdateSolveCenter:
                case ResetTypes.None:
                default:
                    break;
            }
        }
    }
}

